<!DOCTYPE html>
<html>

<head>
<title>添加代理</title>
<meta http-equiv="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit">

<%include("/common/include.html"){}%>
<style>
	.required{
		display:inline-block;
		width: 30%;
	}
	.requiredx{
		display:inline-block;
		width: 89%;
	}
	label{
		text-align:right;
		width:70px;
		display:inline-block;
	}
</style>
<style type="text/css">
</style>
</head>

<body>
	<div class="easyui-panel" style="width: 100%; padding: 30px 60px; border-width: 0px;">
		<div  style="margin:auto;width:770px">
			<form id="addPlate" method="post" class="form">
				<div style="margin-bottom: 20px">
					<label class="label-top">号段:</label>
					<div class="required">
						<input class="easyui-textbox theme-textbox-radius" style="width: 35%;" name="numberks">——
						<input class="easyui-textbox theme-textbox-radius" style="width: 35%;" name="numberjs">
					</div>
					<span style="color:red">*必填项</span>
					<label class="label-top" style="margin-left:30px">生产厂家:</label>
					<div class="required">
						<input class="easyui-textbox theme-textbox-radius" style="width: 100%;" name="plateMaintenance.manufacturer">
					</div>
					<span style="color:red">*必填项</span>
				</div>
				
				<div style="margin-bottom: 20px">
					<label class="label-top">长:</label>
					<div class="required">
						<input class="easyui-numberspinner inputBox theme-textbox-radius" style="width: 100%;" name="plateMaintenance.chang" data-options="increment:0.1,min:1,max:100000,precision:2,label:'cm'">
					</div>
					<span style="color:red">*必填项</span>
					<label class="label-top" style="margin-left:30px">宽:</label>
					<div class="required">
						<input class="easyui-numberspinner inputBox theme-textbox-radius" style="width: 100%;" name="plateMaintenance.width" data-options="increment:0.1,min:1,max:100000,precision:2,label:'cm'">
					</div>
					<span style="color:red">*必填项</span>
				</div>
				
				<div style="margin-bottom: 20px">
					
					<!-- <label class="label-top" >号牌:</label>
					<div class="required">
						<input class="easyui-numberspinner inputBox theme-textbox-radius" style="width: 100%;" name="plateMaintenance.number11"  >
					</div>
					<span style="color:red">*必填项</span> --> 
				
					<label class="label-top">颜色:</label>
					<div class="required">
						<input class="easyui-textbox theme-textbox-radius" value="蓝色"   style="width: 100%;" name="plateMaintenance.color">
					</div>
					<span style="color:red">*必填项</span>
					
				</div>
				
				<div id="partVal" style="display: none;">
				
				</div>
				
			</form>
		</div>
	</div>
	
	<script type="text/javascript">
		function showPart() {
			$('#win').window('open');
		}
		//@ sourceURL=mmm.js
		var $form = $('#addPlate');

		var submitNow = function($dialog, $grid, $tree, $pjq) {
			$("#partVal").html($("#partText").html());
			var url = "${cxt!}/plateMaintenance/addPlate";
			$.post(url, sy.serializeObject($form), function(result) {
				if (result.code == '200') {
					$grid.datagrid('reload');
					$.slideMsg("添加成功！", $pjq);
					$dialog.dialog('destroy');
				} else {
					$.alert($pjq, result.msg);
				}
			}, 'json');
		};
		var submitForm = function($dialog, $grid, $tree, $pjq) {
			submitNow($dialog, $grid, $tree, $pjq);
			// 					$form.isValid(function(isValied){
			// 						if(isValied){
			// 							submitNow($dialog, $grid, $pjq);
			// 						}
			// 					});
		};

	</script>
</body>
</html>